package com.taomu.app.zongchouhuli.utils.zxing;

import android.content.Context;
import android.graphics.Bitmap;

import com.google.zxing.WriterException;

public class QrUtils {
    public static Bitmap createQr(String content, int size) {
        try {
            return CreateQrHelper.createBitmap(content, size);
        } catch (WriterException e) {
            e.printStackTrace();
        }
        return null;
    }

    public static Bitmap createBarQr(String content){
        return CreateQrHelper.BarcodeFormatCode(content);
    }
}
